package com.tbs.easyhomemoneyserver.interfaces

import com.tbs.easyhomemoneyserver.DO.LoginInfo
import com.tbs.easyhomemoneyserver.DO.SysUser
import com.tbs.easyhomemoneyserver.form.LoginForm
import org.slf4j.LoggerFactory
import java.io.Serializable

interface ILoginPolicy {
    public class LoginFormDTO(
        val loginForm: LoginForm
    ) : Serializable {


        public var loginInfo: LoginInfo? = null;
        public var user: SysUser? = null
        companion object {
            val log = LoggerFactory.getLogger(LoginFormDTO::class.java)
            private val serialVersionUID = -8956048043174600609L
        }
    }

    fun selectAndCheckUserInfo(loginFormDTO: LoginFormDTO): LoginFormDTO

    fun selectAndCheckLoginInfo(loginFormDTO: LoginFormDTO):LoginFormDTO


}